package com.cos.entity;

/**
  * @author: zxc
  * @return:
  * @time:  2021/5/13 20:59
  * @description:
  */
public class Subject {
    private Integer id;
    private String name;
    private Integer grad;

    @Override
    public String toString() {
        return "Subject{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", grad=" + grad +
                '}';
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getGrad() {
        return grad;
    }

    public void setGrad(Integer grad) {
        this.grad = grad;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Subject(Integer id, String name, Integer grad) {
        this.id = id;
        this.name = name;
        this.grad = grad;
    }

    public Subject() {
    }

    public Subject(Integer id) {
        this.id = id;
    }
}
